package com.im.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 业务枚举
 *
 * @author yunZhouJiaDi
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {

    SUCCESS(200, "操作成功"),
    FAILED(501, "操作失败"),
    UNAUTHORIZED(401, "token已经过期,请重新登录"),
    CAPTCHA_LOSE_EFFICACY(101, "验证码已失效，请获取新的验证码"),
    CAPTCHA_IS_ERROR(102, "您输入的验证码不正确，请您重新输入"),
    USERNAME_IS_EXIST(103, "账号已存在，请重新输入"),
    THE_RESET_PASSWORD_IS_INCORRECT(104, "两次输入密码不正确"),
    MAN(1, "男"),
    WOMAN(2, "女"),
    ENABLE(1, "启用"),
    DISABLE(2, "禁用"),
    USERNAME_IS_NOT_EXIST(105, "账号不存在，请您确认你的账号"),
    LOCKED_USER(106, "账号锁定中"),
    THE_NEW_PASSWORD_IS_NOT_THE_SAME_AS_THE_REPEATED_PASSWORD(107, "新密码和重复密码不一样"),
    NO_FRIEND_CONTACT_STATUS(0, "非好友"),
    FRIEND_CONTACT_STATUS(1, "好友"),
    DELETE_FRIEND_CONTACT_STATUS(2, "已删除好友"),
    QUILT_DELETE_FRIEND_CONTACT_STATUS(3, "被好友删除"),
    BLOCK_FRIEND_CONTACT_STATUS(4, "已拉黑好友"),
    QUILT_BLOCK_FRIEND_CONTACT_STATUS(5, "被好友拉黑"),
    DIRECTLY_JOIN_TYPE(0, "直接加入"),
    AGREED_JOIN_TYPE(1, "同意后加好友"),
    FRIEND_TYPE(0, "联系人类型-好友"),
    CLUSTER_TYPE(1, "联系人类型-群组"),
    PEND_CONTACT_APPLY_STATUS(0, "待处理"),
    AGREED_CONTACT_APPLY_STATUS(1, "已同意"),
    REJECTED_CONTACT_APPLY_STATUS(2, "已拒绝"),
    NOT_YOUR_FRIEND(108, "不是你好友"),
    MAX_FILE_SIZE_ERROR(109, "文件大小不能超过150M"),
    FILE_CANNOT_EXCEED_SIX(110, "文件数量不能超过6个"),
    CLUSTER_NAME_ALREADY_EXISTS(111, "群名称已存在，请重新输入"),
    YOU_ARE_IN_THE_GROUP(112, "已在群组，无需申请"),
    MSG_WITHDRAWN_NOT(1, "未撤回"),
    MSG_WITHDRAWN(2, "已撤回"),
    PROHIBITION(1, "禁言"),
    WITHOUT_HESITATION(0, "不禁言"),
    CLUSTER_NORMAL(1, "群组状态-正常"),
    CLUSTER_DISSOLUTION(0, "群组状态-解散"),
    ORDINARY_MEMBERS(1, "普通成员"),
    GROUP_LEADER(2, "群主"),
    DELETE_NOT(1, "否"),
    DELETE(2, "是"),
    NOT_OWNER_NOT_OPERATE(113, "不是群主不能操作"),
    NOT_FRIEND(114, "对方不是你好友，无法发送信息"),
    NOT_TOP_MESSAGE(1, "否"),
    TOP_MESSAGE(2, "是"),
    THIS_MESSAGE_WAS_NOT_SENT_BY_YOU_AND_CANNOT_BE_RETRACTED(115, "这条消息不是由您发送,无法撤回"),
    THE_MESSAGE_WAS_SENT_MORE_THAN_FIVE_MINUTES_AGO_AND_CANNOT_BE_RETRACTED(116, "消息已发送超过2分钟，无法撤回"),
    PROHIBITED_UNABLE_TO_SEND_MESSAGE(117, "全员禁言中，不能发送消息"),
    CLUSTER_PART(118, "群已解散"),
    YOU_ARE_NOT_A_GROUP_MEMBER_AND_CANNOT_SEND_MESSAGES(119, "你不是群组成员,不能发送消息"),
    FREQUENT_OPERATION(120, "操作过于频繁"),
    ;

    private Integer code;
    private String message;

}
